package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.WisdomElectricityDao;
import com.site.wisdom_construction.entity.iotModule.WisdomElectricity;
import com.site.wisdom_construction.entity.publicModule.Value;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2021/12/17
 * @Description
 */
@Service
public class WisdomElectricityService implements WisdomElectricityDao {
    @Autowired
    private WisdomElectricityDao wisdomElectricityDao;

    @Override
    public int insertWisdomElectricity(Map map) {
        return wisdomElectricityDao.insertWisdomElectricity(map);
    }

    @Override
    public WisdomElectricity findWisdomElectricityByNew(Map map) {
        return wisdomElectricityDao.findWisdomElectricityByNew(map);
    }

    @Override
    public List<Value> countWisdomElectricity(Map map) {
        return wisdomElectricityDao.countWisdomElectricity(map);
    }

    @Override
    public List<Value> countWisdomElectricityD(Map map) {
        return wisdomElectricityDao.countWisdomElectricityD(map);
    }

    @Override
    public List<WisdomElectricity> findWisdomElectricityByPage(Map map) {
        return wisdomElectricityDao.findWisdomElectricityByPage(map);
    }

    @Override
    public long Total(Map map) {
        return wisdomElectricityDao.Total(map);
    }

    @Override
    public int deleteWisdomElectricity(Map map) {
        return wisdomElectricityDao.deleteWisdomElectricity(map);
    }
}
